home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- go(the frame)
- end
-
- on keyDown
- case the key of
- TAB:
- doTabThang()
- ENTER, RETURN:
- doDefaultButton()
- end case
- end
-
- on doTabThang
- global gDefaultButton
- if the memberNum of sprite 2 = the number of member "lrg def btn" then
- if the visible of sprite 4 = 1 then
- set the memberNum of sprite 4 to the number of member "sml def btn"
- set the memberNum of sprite 2 to the number of member "lrg btn"
- set gDefaultButton to "2"
- updateStage()
- exit
- else
- if the visible of sprite 6 = 1 then
- set the memberNum of sprite 6 to the number of member "sml def btn"
- set the memberNum of sprite 2 to the number of member "lrg btn"
- set gDefaultButton to "3"
- updateStage()
- exit
- end if
- end if
- else
- if the memberNum of sprite 4 = the number of member "sml def btn" then
- if the visible of sprite 6 = 1 then
- set the memberNum of sprite 6 to the number of member "sml def btn"
- set the memberNum of sprite 4 to the number of member "sml btn"
- set gDefaultButton to "3"
- updateStage()
- exit
- else
- set the memberNum of sprite 2 to the number of member "lrg def btn"
- set the memberNum of sprite 4 to the number of member "sml btn"
- set gDefaultButton to "1"
- updateStage()
- exit
- end if
- else
- if the memberNum of sprite 6 = the number of member "sml def btn" then
- set the memberNum of sprite 2 to the number of member "lrg def btn"
- set the memberNum of sprite 6 to the number of member "sml btn"
- set gDefaultButton to "1"
- updateStage()
- exit
- end if
- end if
- end if
- end
-
- on doDefaultButton
- global gDefaultButton
- set cmd to the text of member ("AskCmd" & gDefaultButton)
- tell the stage
- closeAlertWin()
- end tell
- set btnName to the text of member ("AskBtn" & gDefaultButton)
- tell the stage
- do(cmd)
- return btnName
- end tell
- end
-